home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src / Makefile.OpenStep < prev    next >
Encoding:
Makefile  |  1996-11-24  |  2.2 KB  |  94 lines

  1. # $Id: Makefile,v 1.2 1996/09/27 01:33:24 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.0
  5. # Copyright (C) 1995-1996  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # Makefile for core library
  23.  
  24.  
  25. # $Log: Makefile,v $
  26. # Revision 1.2  1996/09/27 01:33:24  brianp
  27. # removed fortran.c
  28. #
  29. # Revision 1.1  1996/09/13 01:37:56  brianp
  30. # Initial revision
  31. #
  32.  
  33.  
  34.  
  35. ##### MACROS #####
  36.  
  37. VPATH = RCS
  38.  
  39. INCDIR = ../include
  40. LIBDIR = ../lib
  41.  
  42. CORE_SOURCES = accum.c alpha.c alphabuf.c api.c attrib.c bitmap.c \
  43.     blend.c bresenhm.c clip.c context.c copypix.c depth.c \
  44.     dlist.c draw.c drawpix.c enable.c eval.c feedback.c fog.c \
  45.     get.c interp.c image.c light.c lines.c logic.c \
  46.     masking.c matrix.c misc.c pb.c pixel.c points.c pointers.c \
  47.     polygon.c readpix.c scissor.c span.c stencil.c teximage.c \
  48.     texobj.c texture.c triangle.c varray.c vb.c vertex.c winpos.c \
  49.     xform.c
  50.  
  51. DRIVER_SOURCES = osmesa.c
  52.  
  53.  
  54.  
  55. OBJECTS = $(CORE_SOURCES:.c=.o) $(DRIVER_SOURCES:.c=.o)
  56.  
  57.  
  58.  
  59. ##### RULES #####
  60.  
  61. .c.o:
  62.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  63.  
  64.  
  65.  
  66. ##### TARGETS #####
  67.  
  68. default:
  69.     @echo "Specify a target configuration"
  70.  
  71. clean:
  72.     -rm *.o *~
  73.  
  74. targets: $(LIBDIR)/$(GL_LIB)
  75.  
  76. # Make the library
  77. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  78.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  79.     $(RANLIB) $(GL_LIB)
  80.     mv $(GL_LIB)* $(LIBDIR)
  81.  
  82. include ../Make-config
  83.  
  84. include depend
  85.  
  86.  
  87.  
  88. #
  89. # Run 'make depend' to update the dependencies if you change what's included
  90. # by any source file.
  91. dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
  92.     makedepend -fdepend -Y -I../include $(CORE_SOURCES) $(DRIVER_SOURCES)
  93.